from rest_framework_simplejwt.views import TokenRefreshView,TokenVerifyView,TokenObtainPairView

from django.conf.urls import url
from apps.users import views

urlpatterns = [
    # 用户注册
    url(r'^register/$', views.UserView.as_view()),
    # 判断用户名是否重复
    url(r'^usernames/(?P<username>\w{5,20})/count/$', views.UsernameCountView.as_view()),
    # 用户中心详情
    url(r'^user/$', views.UserDetailView.as_view()),
    # JWT实现账号登录
    url(r'^login/$',  TokenObtainPairView.as_view()),
]
